<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    
    
    <!-- <script src="d3.min.js"></script> -->
    <script src="https://d3js.org/d3.v7.min.js"></script>
    <script>
       let a = d3.scaleLinear([1200,6600],[0,600]).nice();
       //a = d3.scaleBand(['a','b','c','d','e'],[0,600]);
       //a = d3.scaleTime([new Date('2022-01-01 00:00:00') , new Date('2022-01-02 00:00:00')] , [0,600]).nice()
       //a = d3.scaleOrdinal(['a','b','c'] , ['A','B','C']);
       const axis = d3.axisBottom(a);
       axis.ticks(5,'~s');
       axis.tickValues([1200,2200,3200,4200,5200,6200])
       axis.tickFormat(d3.format('~s'));
       axis.tickSizeInner(10);
       axis.tickSizeOuter(10);
       axis.tickSize(20);
       axis.tickPadding(50);
       axis.offset(50);
       axis(d3.select('body').append('svg').attr('width',800).attr('height',500));
    </script>
</body>
</html>